package com.group.service.impl;

import com.group.pojo.UserNumber;
import com.group.mapper.UserNumberMapper;
import com.group.service.UserNumberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
@Service
public class UserNumberServiceImpl implements UserNumberService {

    @Autowired
    private UserNumberMapper userNumberMapper;

    @Override
    public List<UserNumber> findAllUserNumber1(UserNumber userNumber) {
        return userNumberMapper.findAllUserNumber1(userNumber);
    }

    @Override
    public boolean addUserNumber1(UserNumber userNumber) {
        if(userNumberMapper.addUserNumber1(userNumber)>0){
            return true;
        }
        return false;
    }

    @Override
    public boolean deleteUserNumber1(String[] ids) {
        if(userNumberMapper.deleteUserNumber1(ids)>0){
            return true;
        }
        return false;
    }

    @Override
    public boolean updateUserNumber1(UserNumber userNumber) {
        if(userNumberMapper.updateUserNumber1(userNumber)>0){
            return true;
        }
        return false;
    }
}
